
#加法运算
def add(a, b):
    c = a + b
    return c

result = add(2, 5)
print(result)


#减法运算
def sub(a, b):
    c = a - b
    return c

result = sub(8, 5)
print(result)


#乘法运算
def mul(a, b):
    c = a * b
    return c

result = mul(2, 3)
print(result)


#除法运算
def div(a, b):
    c = a / b
    return c

result = div(8, 2)
print(result)


#取余运算
def rem(a, b):
    c = a % b
    return c

result = rem(7, 3)
print(result)


#开方运算
def pre(a):
    c = a ** (1/2)
    return c

result = pre(9)
print(result)
